package io.webchat.wdzl.services;


import io.webchat.wdzl.netty.ChatMsg;
import io.webchat.wdzl.pojo.FriendsRequest;
import io.webchat.wdzl.pojo.User;
import io.webchat.wdzl.vo.FriendsRequestVO;
import io.webchat.wdzl.vo.MyFriendsVO;

import java.util.List;

public interface UserServices {

    //根据用户名查找指定用户对象
    User queryUserNameIsExit(String username);

    //保存用户
    User insert(User user);


    User getById(String object);


    //批量签收
    List<io.webchat.wdzl.pojo.ChatMsg> getUnReadMsgList(String acceptUserId);


    void updateMsgSigned(List<String> msgIdList);



    //保存用户聊天消息
    String saveMsg(ChatMsg chatMsg);

    //修改用户
    User updateUserInfo(User user);

    //搜索好友的前置条件接口
    Integer preconditionSearchFriends(String myUserId, String friendUserName);

    void sendFriendRequest(String myUserId, String friendUserName);

    void deleteFriendRequest(FriendsRequest friendsRequest);

    void passFriendRequest(String sendUserId, String acceptUserId);

    List<FriendsRequestVO> queryFriendRequestList(String userId);

    List<MyFriendsVO> queryMyFriends(String acceptUserId);
}
